home *** CD-ROM | disk | FTP | other *** search
/ Netware Super Library / Netware Super Library.iso / pgm_tool / lu62 / debug / scrollw.c < prev    next >
C/C++ Source or Header  |  1995-07-03  |  730b  |  38 lines

  1. /*
  2.  *  CopyRight 1995. Nicholas Poljakov all rights reserved.
  3.  */
  4. #include <dos.h>
  5. #include <stdlib.h>
  6. #define MAX_FRAME 31
  7.  
  8. extern struct menu_frame {
  9.     int startx, endx, starty, endy;
  10.     unsigned char *p;
  11.     char **menu;
  12.     char *keys;
  13.     int border;
  14.     int count;
  15.     unsigned char attrib;
  16.     int active;
  17.     int curx, cury;
  18.     char *header;
  19.     unsigned char shd;
  20.     } frame[MAX_FRAME];
  21.  
  22. scrollw(num)
  23. int num;
  24. {
  25.     union REGS r;
  26.  
  27.     r.h.ah = 6;
  28.     r.h.al = 1;
  29.     r.h.bh = frame[num].attrib;
  30.     r.h.ch = frame[num].startx + 1;
  31.     r.h.cl = frame[num].starty + 1;
  32.     r.h.dh = frame[num].endx - 1;
  33.     r.h.dl = frame[num].endy - 1;
  34.     int86(0x10, &r, &r);
  35.  
  36.     return (0);
  37. }
  38.